<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title>易刀商城-绑定用户</title>
  <link rel="stylesheet" type="text/css" href="{{ static('css/reset.css') }}">
  <link rel="stylesheet" type="text/css" href="{{ static('css/main.css') }}">
  <link rel="stylesheet" type="text/css" href="{{ static('css/index.css') }}"/>
  <script type="text/javascript" src="{{ static('js/vue-2.5.16.js') }}"></script>
  <script type="text/javascript" src="{{ static('js/axios-0.18.0.min.js') }}"></script>
</head>
<body>
<div id="app">
  <div class="register_con">
    <div class="l_con fl">
      <a href="{{ url('contents:index') }}" class="reg_logo"><img src="{{ static('images/logo-181-59.png') }}"></a>
      <div class="reg_slogan">商品美 · 种类多 · 欢迎光临</div>
      <div class="reg_banner"></div>
    </div>
    <div class="r_con fr">
      <div class="reg_title clearfix">
        <h1>绑定用户</h1>
      </div>
      <div class="reg_form clearfix">
        <form method="post" id="reg_form" @submit="save" v-cloak>
          {{ csrf_input }}
          <ul>
            <li>
              <label>手机号:</label>
              <input type="text" v-model="user.mobile" @blur="mobileBlur" name="mobile" id="phone">
              <span v-if="errorMobile" class="error_tip">{{ errorMobileMessage }}</span>
            </li>
            <li>
              <label>密码:</label>
              <input type="password" v-model="user.password" @blur="passwordBlur" name="password" id="pwd">
              <span v-if="errorPassword" class="error_tip">{{ errorPasswordMessage }}</span>
              {% if respMsg %}
                <span class="error_tip">{{ respMsg }}</span>
              {% endif %}
            </li>
            <li>
              <label>图形验证码:</label>
              <input type="text" v-model="code" @blur="checkCodeBlur" name="code" id="code"
                     class="msg_input">
              <img :src="codeImg" @click="getCodeImg" alt="图形验证码" class="pic_code">
              <span v-if="errorCode" class="error_tip">{{ errorCodeMessage }}</span>
            </li>
            <li>
              <label>短信验证码:</label>
              <input type="text" v-model="shortMSG" @blur="checkShortMSG" name="shortMSG" id="shortMSG"
                     class="msg_input">
              <a @click="sendShortMSG" class="get_msg_code">{{ shortMSGTip }}</a>
              <span v-if="errorShort" class="error_tip">{{ errorShortMSG }}</span>
              <span v-if="errorAllowed" class="error_tip">{{ errorAllowedMessage }}</span>
              {% if errorShortResponse %}
                <span class="error_tip">{{ errorShortResponse }}</span>
              {% endif %}
              {% if openidErrorMsg %}
                <span class="error_tip">{{ openidErrorMsg }}</span>
              {% endif %}
              {% if accountErrorMsg %}
                <span class="error_tip">{{ accountErrorMsg }}</span>
              {% endif %}

            </li>
            {% if openid %}
              <input type="hidden" name="openid" v-model="openid">
              <span id="openidNo" class="hidden">{{ openid }}</span>
            {% endif %}


            <li class="reg_sub">
              <input type="submit" value="保 存" name="">
            </li>
          </ul>
        </form>
      </div>
    </div>
  </div>
  <div class="footer no-mp">
    <div class="foot_link">
      <a href="#">关于我们</a>
      <span>|</span>
      <a href="#">联系我们</a>
      <span>|</span>
      <a href="#">招聘人才</a>
      <span>|</span>
      <a href="#">友情链接</a>
    </div>
    <p>CopyRight © 2023 北京凯文特商业股份有限公司 All Rights Reserved</p>
    <p>电话：010-****888 京ICP备*******8号</p>
  </div>
</div>
<script type="text/javascript" src="{{ static('js/common.js') }}"></script>
<script type="text/javascript" src="{{ static('js/users/oauth_callback.js') }}"></script>
</body>
</html>